﻿/***************************************************
 * File name: UserAddress.cs 
 * Author: Team A
 * Change Log: Please see SVN repository: http://test-project-drew1.googlecode.com/svn/trunk/
 * Date: December 2013
 * Description: See <summary> tab below
 * *************************************************/

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WSCeCommerce.Domain
{
    /// <summary>
    /// Represents a mapping between users and adresses. 
    /// </summary>
    public class UserAddress
    {
        /// <summary>
        /// User ID to map the address to 
        /// </summary>
        [Key,Column(Order = 0),DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int UserId { get; set; }

        /// <summary>
        /// Address to map the user ID to
        /// </summary>
        [Key, Column(Order = 1)]
        public Address Address { get; set; }
    }
}
